package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.EmployeeCategory;
import com.iengoo.inductionms.service.EmployeeCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 * 员工类别表
 **/
@RestController
@RequestMapping("employee_category")
public class EmployeeCategoryController {
    @Autowired
    private EmployeeCategoryService employeeCategoryService;
    @GetMapping
    public List<EmployeeCategory> getEmployeeCategory() {
        List<EmployeeCategory> employeeCategoryList = employeeCategoryService.queryAll();
        return employeeCategoryList;
    }
}
